package com.zlm.custom.spring.sub;

import com.zlm.custom.spring.Autowired;
import com.zlm.custom.spring.Component;
import com.zlm.custom.spring.PostConstruct;

/**
 * @author zlm
 * @date 2025/4/26
 */
@Component
public class Cat {

    @Autowired
    private Dog dog;

    @PostConstruct
    public void init(){
        System.out.println("Cat创建了,cat里有一个属性"+dog);
    }
}
